﻿using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Model.Results
{
    /// <summary>
    /// 分页请求实体
    /// </summary>
    public class PageRequestModel
    {
        /// <summary>
        /// 每页条数
        /// </summary>
        [SwaggerSchema(Description = "每页条数")]
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 当前页数
        /// </summary>
        [SwaggerSchema(Description = "当前页数")]
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 是否分页
        /// </summary>
        [SwaggerSchema(Description = "是否分页")]
        public bool IsPage { get; set; } = true;
    }
}
